package com.hzsai.service.Impl;

import com.hzsai.service.AsyncService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * hzsai 2019/8/1
 * usage:
 **/
@Service
public class AsyncServiceImpl implements AsyncService {

    @Async
    @Override
    public void generateReport() {
        System.out.println("报表线程名称：" + "【" + Thread.currentThread().getName() + "】");
    }
}
